package org.lemon.cla.exception;

public class BusinessException extends RuntimeException {

    private final int code; // 自定义错误码

    public BusinessException(int code, String message) {
        super(message); // 调用父类构造函数设置异常信息
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}
